// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import Client from '@api/meeting/api/MeetingAppointmentRecordApi'

import RejClass from '@api/meeting/model/MeetingAppointmentRecordCancelReq'

const CLIENT = CORE.grpcCLIENT(Client)

// ============================== 导出远程接口 ============================== //

export default {
  // —————————————————————————————— 拒绝 —————————————————————————————— //

  async rej({ id }, TIP = '拒绝') {
    const DTO = CORE.grpcDTO(RejClass, { id })
    await CORE.grpc(TIP, CLIENT, 'meetingAppointmentRecordCancel', DTO)
    return CORE.grpcOK(TIP)
  },
}
